<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>简历列表</title>
<%@include file="../../common/tagInclude.jsp" %>
<%@include file="../../common/headerInclude.jsp" %>
<script type="text/javascript">
	$(function() {
		$("#jvForm").validate();
	});
	function del(resumeId){
		if(!confirm("确定要删除内容信息?")){
			return ;
		}
		window.location = '${basePath}super/job/resume-del.do?resumeId='+resumeId;
	}
	function delSel(itemName){
		var all_checkbox = document.getElementsByName(itemName);
		var len = all_checkbox.length;
		if(isChecked(itemName) == false ){
			alert('至少选择一项');
		}else{
			if(!confirm('确认要删除指定内容?'))return;
			var values = "";
			for(var i=0;i<len ;i++){
				if(all_checkbox[i].checked)
					values += "," + all_checkbox[i].value;
			}
			if(values.length > 1)
				values = values.substring(1);
			window.location = '${basePath}super/job/resume-del.do?resumeId='+values;
		}
	}
</script>
<script type="text/javascript" src="${basePath}res/common/js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="body-box">
	<div class="rhead">
		<div class="rpos">当前位置: 首页  - 招聘 - 简历列表</div>
		<form class="ropt">
			<!-- <input type="submit" value="添加" onclick="this.form.action='${basePath}super/job/resume-show.do';"> -->
		</form>
		<div class="clear"></div>
	</div>
	<form action="${basePath}super/job/resume-list.do" method="get" style="padding-top:5px;">
		<div>
			<a href="javascript:checkAll('resumeId',true);">全选</a>&nbsp;&nbsp;<a href="javascript:checkAll('resumeId',false);">取消</a>&nbsp;&nbsp;
			<a href="javascript:delSel('resumeId');">删除所选</a>&nbsp;&nbsp;
		</div>
		<table class="pn-ltable" width="100%" cellspacing="1" cellpadding="0" border="0">
			<thead class="pn-lthead">
			<tr>
				<th>序列</th>
				<th>语种</th>
				<th>岗位</th>
				<th>应聘者</th>
				<th>性别</th>
				<th>出生年月</th>
				<th>邮箱</th>
				<th>电话</th>
				<th>应聘时间</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody class="pn-ltbody">
			<c:forEach items="${resumeList}" var="resume" varStatus="status">
			<tr>
				<td align="center"><input type="checkbox" id="resumeId" name="resumeId" value="${resume.resumeId}"/></td>
				<td align="center">${resume.languageInfo.name}</td>
				<td align="center"><a href="${basePath}super/job/resume-view.do?resumeId=${resume.resumeId}" target="_blank">${resume.jobInfo.title}</a></td>
				<td align="center">${resume.name}</td>
				<td align=center><c:if test="${resume.gender == 1}">男性</c:if><c:if test="${resume.gender == 2}">女性</c:if></td>
				<td align=center>${resume.birthday}</td>
				<td align=center>${resume.email}</td>
				<td align=center>${resume.areaCode}  ${resume.telephone}</td>
				<td align=center>${resume.resumeTime}</td>
				<td align=center>
					<a href="${basePath}super/job/resume-view.do?resumeId=${resume.resumeId}" target="_blank">查看</a>&nbsp;&nbsp;
					<%-- <a href="${basePath}super/job/resume-export-wps.do?resumeId=${resume.resumeId}">导出WPS</a>&nbsp;&nbsp; --%>
					<a href="javascript:del('${resume.resumeId}');">删除</a></td>
			</tr>
			</c:forEach>
			</tbody>
		</table>
		<c:set var="pageURL" value="${basePath}super/job/resume-list.do?"/>
		<%@include file="../../common/pages.jsp"%>
	</form>
</div>
</body>
</html>